package src.main.scala.com.lagou.homework.part05

/**
 * @author: yehw
 * @date: 2020/10/11 14:21
 * @description: ${TOD}
 */
//通过一个对象保存worker的信息
class WorkerInfo(val workerId:String,val memory:Int,val cores:Int) {

   //定义一个变量，用于保存worker的上一次心跳时间
    var  lastHeartBeatTime:Long=_

  //重写toString
  override def toString: String = {
    s"workerId:$workerId memory:$memory cores:$cores"
  }

}


